# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=threatspec
pkgver=0.5.0
pkgrel=7
pkgdesc='Project to integrate threat modelling into development process.'
arch=('any')
groups=('blackarch' 'blackarch-defensive' 'blackarch-misc')
url='https://github.com/threatspec/threatspec'
license=('MIT')
depends=('python' 'python-click' 'python-graphviz' 'python-comment-parser'
         'python-yaml' 'python-jsonschema' 'python-jinja' 'python-python-magic')
makedepends=('python-setuptools' 'python-pip' 'python-wheel')
source=("https://files.pythonhosted.org/packages/source/t/$pkgname/$pkgname-$pkgver.tar.gz")
sha512sums=('7ee1a4d4bd52d7be9dd619c86402de3040dafbb8d801f4766e89c27c3b2067fa9908a3099f8b7154a4961ab9c76f77663c440886010d1e3a6ae9863ea3655a59')

build() {
  cd "$pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

